<%
	'Modified by : Lay
	'Modified Date : 05 Oct 2010
	'Desc : Add "Refer a friend" Link  ,it's only appear for perm positions 
%>

<!-- #INCLUDE FILE="inc/initDb.inc" -->
<!-- #INCLUDE FILE="inc/Common.asp" -->
<!-- #INCLUDE FILE="inc/config.asp" -->
<% 
Dim tabSelected
tabSelected = "candidates"

Dim JobID
JobID = Request.QueryString("JobID")

If JobID = "" or len(JobID) > 12 or len(JobID) <= 0 Then
    Response.Redirect("candidates_search.asp")
Else
    Dim SqlParam
    sql = "SELECT * FROM JOB_ADVERTISEMENT WHERE 1=1 AND JOB_ADV_CODE = ? "
    SqlConn.Open
    
    Set cmd = Server.CreateObject("ADODB.Command")
    Set SqlParam = cmd.CreateParameter(,200, , 12, JobID)
    cmd.Parameters.Append SqlParam
    cmd.CommandText = sql
    cmd.ActiveConnection = SqlConn
    set rs = Server.CreateObject("ADODB.RecordSet")
    rs.Open cmd, , 3
End If

title = rs("JOB_ADV_TITLE") & " - Adecco Singapore"
meta_desc = replace(rs("JOB_ADV_DESC"), vbCrLf, "<br>")
%>
<!--#include file="inc/header.asp" -->
<!--#include file="candidates_leftmenu.asp" -->
<!--<div class="threeCols">-->
<%
Dim ShareURL
ShareURL = Server.URLEncode("http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") & "?" & Request.Querystring)
%>
<div class="fourCols">
    <br />
    <h1>
        Job Search Results</h1>
    <br />
    <div class="textContainer">
        <h3>
            Job Details</h3>
    </div>
    <ul class="toolBar">
        <!--<li class="back"><a href="candidates_search.asp">Back to search</a></li>-->
        <li class="back"><a href="#" onclick="history.back();">Back to search</a></li>
        <li class="email"><a href="javascript:return false;" onclick="javascript:EmailLink(window.location, 'Position: <% =Replace(rs("JOB_ADV_TITLE"), "'", "\'") %>'); return false">Email this page</a></li>
    </ul>
    <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr valign="top">
            <td style="text-align:right">
                <table cellpadding="0" cellspacing="0" border="0" width="100px" align="right">
                    <tr style="text-align:right">
                        <td style="padding-right:10px"><a target="_blank" href="http://www.facebook.com/sharer.php?u=<%= ShareURL %>&t=<%=Replace(rs("JOB_ADV_TITLE"), "'", "\'") %>"><img src="Images/fb_share_button.jpg" alt="Share on Facebook" /></a></td>
                        <td><a href="http://twitter.com/share?url=<%= ShareURL %>&text=<%=Replace(rs("JOB_ADV_TITLE"), "'", "\'") %>" class="twitter-share-button" data-count="none" data-via="adeccosingapore">Tweet</a></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    <%
        If rs.RecordCount > 0 Then
    %>
    <div class="A05">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <h3>
                        <% =rs("JOB_ADV_TITLE") %>
                    </h3>
                </td>
                <td align="right">
                    <h3>
                        Posted:

                        <script type="text/javascript">document.write(dateFormat('<%=rs("POSTING_DATE") %>', "dddd, dd mmmm yyyy"))</script>

                    </h3>
                </td>
            </tr>
        </table>
        <br />
    </div>
    <div class="textContainer section">
        <p>
            <% =rs("COMPANY_PROFILE") %>
        </p>
        <div class="cTable">
            <p>
                <table width="99%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 35%; font-weight: bold;">
                            Job Code</td>
                        <td>
                            <%=getValue(rs("JOB_ADV_CODE")) %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Job Title</td>
                        <td>
                            <%=getValue(rs("JOB_ADV_TITLE")) %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Type of Employment</td>
                        <td>
                            <%=getValue(rs("SERVICE_TYPE")) %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Duration of Assignment</td>
                        <td>
                            <%=getValue(rs("JOB_DURATION")) %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Number of Vacancies</td>
                        <td>
                            <%=getValue(rs("NO_OF_VACANCY")) %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Work Location</td>
                        <td>
                            <%=getValue(rs("WORK_LOCATION")) %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Working Hours</td>
                        <td>
                            <%=getValue(rs("WORK_HOURS")) %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Minimum Qualification Required</td>
                        <td>
                            <%=getValue(rs("QUALIFICATION")) %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Salary Offered</td>
                        <td>
                            <%=getValue(rs("SALARY_OFFERED")) %>
                        </td>
                    </tr>
                </table>
            </p>
        </div>
    </div>
    <div class="A05">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <h3>
                        <!--Job Description-->
                        Job Responsibilities</h3>
                </td>
            </tr>
        </table>
        <br />
    </div>
    <div class="textContainer section">
        <p style="line-height: 150%">
            <% =replace(rs("JOB_ADV_DESC"), vbCrLf, "<br>") %>
        </p>
    </div>
    <div class="A05">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <h3>
                        Job Requirements</h3>
                </td>
            </tr>
        </table>
        <br />
    </div>
    <div class="textContainer section">
        <p style="line-height: 150%">
            <% =replace(rs("JOB_ADV_REQ"), vbCrLf, "<br>") %>
        </p>
    </div>
    <hr style="color: #D5D3D0; height: 1px;">
    <br />
    <br />
    <div class="textContainer section">
        <div id="divApplyJob">
            <p>
                If you are a registered Adecco applicant, click <a target="CandidateProfileMgr" class="inLineLink"
                    href="<%=CandidateProfileMgr %>ApplyJob.aspx?JobId=<%=rs("JOB_ADV_CODE") %>">here</a>
                to login and apply for this position.<br />
                If you are a new applicant, click <a target="CandidateProfileMgr" class="inLineLink"
                    href="<%=CandidateProfileMgr %>Signup.aspx?JobId=<%=rs("JOB_ADV_CODE") %>">here</a>
                to register before you apply for this position.
            </p>
        </div>
        <div id="divApplyJobRegistered" style="display: none;">
            <p>
                You have logged in as <span id="lblApplyJobName"></span>, click <a class="inLineLink"
                    href="<%=CandidateProfileMgr %>ApplyJob.aspx?JobId=<%=rs("JOB_ADV_CODE") %>"
                    target="CandidateProfileMgr">here</a> to apply.
            </p>
        </div>
        <div class="cTable">
            <p>
                <table width="99%" cellpadding="0" cellspacing="0" >
                    <tr>
                        <td style="font-weight: bold;" width="35%">
                            Consultant in Charge 
						</td>
                        <td>
                            <% =rs("CONSULT_NAME") %>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">
                            Adecco Branch Details</td>
                        <td>
                            <% =rs("BRANCH_NAME") %>
                            @
                            <% =rs("BRANCH_PHONE") %>
                        </td>
                    </tr>
					<%
						'if lcase(rs("SERVICE_TYPE")) = "permanent" then
					%>
					<!-- <tr>
						 <td>&nbsp;</td>
						 <td>
						   <a href="<%'CandidateProfileMgr%>Login.aspx?JobTitle=<%'Server.UrlEncode(rs("JOB_ADV_TITLE"))%>&JobId=<%'rs("JOB_ADV_CODE") %>"><img src="asset/images/icoEmail.png" border="0">&nbsp;Refer a friend</a>
						 </td>
					</tr> -->
					<% 'end if %>
                </table>
            </p>
        </div>
    </div>
    <%
        rs.Close
        Set rs = nothing
        Else
    %>
    <div class="textContainer">
        <p>
            The Job advertisement which you just requested is not found.</p>
    </div>
    <%
        End If
    %>
</div>

<script type="text/javascript">
    openMenu("subMenu_Jobs");       //this will open the Job's menu
</script>

<%
    SqlConn.close
    Set SqlConn = nothing
%>
<!--#include file="inc/footer.asp" -->
